import { getHost, casConfig } from './cas';
export default function (platfrom, callback) {
  var uri = casConfig.get('host');
  var defaultUri = 'soc/' + casConfig.get('type', 'default') + '/' + platfrom;
  uri += '/login/' + type + '/' + platfrom;

  if (callback) {
    //singlegetuser只获取第三方用户信息，返回soc，不直接跳转登录
    uri += "?singlegetuser=true&callback=" + callback;
  }

  window.location.href = uri;
}